const { src, dest, watch } = require("gulp")
const sass = require('gulp-sass')(require('sass'));

// scss命令
function buildStyles() {
    return src('./www/sass/*')
        .pipe(sass().on('error', sass.logError))
        .pipe(dest('./www/css'));
};

exports.buildStyles = buildStyles;
exports.watch = function () {
    watch(['./www/sass/*'], buildStyles);
};